package com.jarvis.zeng.design.pattern.decorator.drawshape;

/**
 * 红色形状抽象类
 * @author zengjun
 */
public class RedAbstractShapeDecorator extends AbstractShapeDecorator {
 
   public RedAbstractShapeDecorator(Shape decoratedShape) {
      super(decoratedShape);     
   }
 
   @Override
   public void draw() {
      decoratedShape.draw();         
      setRedBorder(decoratedShape);
   }
 
   private void setRedBorder(Shape decoratedShape){
      System.out.println("Border Color: Red");
   }
}